<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div>
    <h1>the goods page</h1>
</div>

<table>
    <thead>
    <tr>
        <td>id</td>
        <td>name</td>
        <td>remark</td>
        <td>createdTime</td>
    </tr>
    </thead>
    <tbody id="tbodyId">
    <tr>
        <td colspan="4">Data is loading...</td>
    </tr>
    </tbody>
</table>
</body>
<script src="js/jquery.min.js"></script>
<script>
    $(function () {
        var url = "/doFindGoods";
        $.getJSON(url, function (result) {
            console.log(result);
            doHandlerQueryResponseResult(result);
        });
    })

    function doHandlerQueryResponseResult(result) {
        let tboday = $("#tbodyId");
        tboday.empty();
        result.forEach(function (item) {
            tboday.append(`<tr><td>${item.id}</td>
                            <td>${item.name}</td>
                            <td>${item.remark}</td>
                            <td>${item.createdTime}</td></tr>`);

        })
    }
</script>
</html>